package news.biz;

import java.util.ArrayList;
import java.util.List;

import news.dao.IBoardDao;
import news.dao.empl.BoardDaoImpl;
import news.entity.Board;

public class BoardBiz {
	IBoardDao boardDao=new BoardDaoImpl();
	
	public boolean addBoard(Board board){
		return boardDao.addBoard(board);
	}
	
	
	public List<Board> executeBoard(){
		return boardDao.executeBoard();
	}
	
	
	public boolean deleteBoard(int boardId){
		return boardDao.deleteBoard(boardId);
	}
	
	
	public Board getPresent(int boardId){
		return boardDao.getPresent(boardId);
	}
	
	
	public boolean updateBoard(Board board){
		return boardDao.updateBoard(board);
	}
}
